package com.atao.baokede.service;

import com.atao.baokede.pojo.Address;
import java.util.List;

public interface AddressService {
    // 原有方法
    void addAddress(Address address);
    void updateAddress(Address address);
    void deleteAddress(Long id, Long userId);
    List<Address> getAddressesByUserId(Long userId);
    void setDefaultAddress(Long id, Long userId);
    // 新增方法（不需要显式传入userId）
    void addAddressWithCurrentUser(Address address);
    void updateAddressWithCurrentUser(Address address);
    void deleteAddressWithCurrentUser(Long id);
    List<Address> getAddressesWithCurrentUser();
    void setDefaultAddressWithCurrentUser(Long id);
}